package com.atguigu.yygh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.CrossOrigin;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.atguigu")//根据服务名，找到服务进行远程的调用
@SpringBootApplication
@ComponentScan(basePackages = "com.atguigu")//扫描配置类
//因为启动类【项目启动的时候默认扫描与启动类同一个包结构下面的】的包结构与工具类的结构不同，所以需要指定扫描的路径
//不同的项目的jar包已经在pom文件中引用
public class ServiceHospApplication {

    //psvm
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }
}
